package com.atu.rtc.factory;

import java.util.HashMap;
import java.util.Map;

public class CapturerFactory {
    private static final Map<Integer, ICapturer> map = new HashMap<>(2);

    public static ICapturer getCapturer(Integer capturer) {
        return map.get(capturer);
    }

    public static void register(Integer capturer, ICapturer iCapturer) {
        map.put(capturer, iCapturer);
    }
}
